package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.MaintenanceConfig;

import java.util.List;

public interface MaintenanceConfigService {

    /**
     * 根据type查询
     *
     * @param maintenanceConfigType
     * @return
     */
    List<MaintenanceConfig> getMaintenanceConfigByType(Integer maintenanceConfigType);

    /**
     * 修改
     *
     * @param maintenanceConfig
     * @return
     */
    Result updateMaintenanceConfig(MaintenanceConfig maintenanceConfig);

    /**
     * 修改
     */
    Result updateSendEmailUsers(Integer maintenanceConfigId, String sendEmailUsers);
}
